<!--<div>-->
    <!--<div class="content_title">-->
        <!--<span>作者管理</span>-->
    <!--</div>-->

    <!--<div>-->
        <!--<label for="writer_id">ID:</label>-->
        <!--<input type="text" id="writer_id"-->
               <!--onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)"-->
               <!--onblur="this.v();" class="id_input">-->

        <!--<label for="writer_name">作者名称:</label>-->
        <!--<input type="text" id="writer_name" class="title_input">-->

        <!--<label for="writer_type1">板块归属:</label>-->
        <!--<select class="select" id="writer_type1" ng-model="select1" ng-options="s.name for s in list">-->
            <!--<option value=""></option>-->
        <!--</select>-->
        <!--<select class="select" id="writer_type2" ng-model="select2" ng-options="s.name for s in select1.child">-->
            <!--<option value=""></option>-->
        <!--</select>-->
        <!--<select class="select" id="writer_type3" ng-model="select3" ng-options="s.value for s in select2.child">-->
            <!--<option value=""></option>-->
        <!--</select>-->
        <!--<br>-->

        <!--<label for="writer_type">状态:</label>-->
        <!--<select name="" id="writer_type" class="select">-->
            <!--<option value="">全部</option>-->
            <!--<option value="0">已显示</option>-->
            <!--<option value="1">已隐藏</option>-->
        <!--</select>-->

        <!--<button class="common_btn " ng-click="writerSelectAll()">查询</button>-->
        <!--<button class="add_btn" ng-click="writerAdd()">新增</button>-->
    <!--</div>-->
    <!--<div class="page">-->
        <!--<button class="common_btn article_find" ng-click="toBefore()">-->
            <!--上一页-->
        <!--</button>-->
        <!--<span ng-bind-template="当前第{{currentPage}}页"></span>,<span ng-bind-template="一共{{allPage}}页"></span>-->
        <!--<button class="common_btn article_find" ng-click="toAfter()">-->
            <!--下一页-->
        <!--</button>-->
    <!--</div>-->
    <!--<div>-->
        <!--<table class="table writer_table" style="padding-bottom: 50px;">-->
            <!--<tr>-->
                <!--<th>ID</th>-->
                <!--<th>作者名称</th>-->
                <!--<th>归属板块</th>-->
                <!--<th>是否推荐</th>-->
                <!--<th>属性</th>-->
                <!--<th>操作</th>-->
            <!--</tr>-->

            <!--<tr ng-repeat="i in listArr">-->
                <!--<td>{{i.authorId}}</td>-->
                <!--<td>{{i.name}}</td>-->
                <!--<td>{{i.father}}/{{i.son}}/{{i.grandson}}</td>-->
                <!--<td>{{authorLeak(i.leak)}}</td>-->
                <!--<td>{{authorType(i.type)}}</td>-->
                <!--<td>-->
                    <!--<button id="author_change" class="delete_btn show{{i.status}}"-->
                            <!--ng-click="authorChange(i.status,i.authorId,this)">{{authorStatus(i.status)}}-->
                    <!--</button>-->
                    <!--<button class="revise_btn" ng-click="writeUpdate(i.authorId)">修改</button>-->
                <!--</td>-->
            <!--</tr>-->
        <!--</table>-->
    <!--</div>-->
<!--</div>-->
<div>
    <style>
        select{
            min-width: 80px;
        }
        .show0{
            background: #e66262;
            border-color: #e66262;
        }
        .show1{
            background: #2dafe0;
            border-color: #2dafe0;;
        }

        #page-wrapper{
            background-color: #F3F3F5;
        }
        .layui-layer-title{
            display: none;
        }
        .layui-layer-content{
            background-color: #393D49;
            color: #fff;
            font-size: 16px;
            text-align: center;
            letter-spacing: 2px;
        }
        #wrapper{
            background-color: #F3F3F5;
        }
    </style>
    <div class="ibox-content">
        <div role="form" class="form-inline">
            <div class="form-group">
                <label for="exampleInputEmail2" >ID:</label>
                <input type="text" placeholder="作者ID" id="writer_id" class="form-control">
            </div>
            <div class="form-group">
                &nbsp;&nbsp;&nbsp;
                <label for="exampleInputPassword2">作者名称</label>
                <input type="text" placeholder="作者名称" id="writer_name" class="form-control">
            </div>

            <br>
            <div class="form-group" style="margin-top: 15px">
                <label for="exampleInputPassword2">板块归属:</label>
                <select class="form-control m-b" id="writer_type1" ng-model="select1" ng-options="s.name for s in list" >
                    <option value=""></option>
                </select>
                <select class="form-control m-b" id="writer_type2" ng-model="select2" ng-options="s.name for s in select1.child">
                    <option value=""></option>
                </select>
                <select class="form-control m-b" id="writer_type3" ng-model="select3" ng-options="s.value for s in select2.child">
                    <option value=""></option>
                </select>
                <label for="exampleInputPassword2">&nbsp;&nbsp;&nbsp;&nbsp;状态:</label>
                <select class="form-control m-b"  id="writer_type">
                    <option value="">全部</option>
                    <option value="0">已显示</option>
                    <option value="1">已隐藏</option>
                </select>
                <button class="btn btn-primary"  style="position: relative;top: -8px" ng-click="writerSelectAll()">查询</button>
            </div>
        </div>
        <!--分页-->
        <div >
            <!--<p id="pageIndex" style="font-size:20px;font-weight:bold;color:blue;margin-left:150px;"></p>-->
            <ul class="pagination"></ul>
        </div>
        <!--展示列表区域-->
        <div class="ibox-content">

            <table class="table table-bordered">
                <thead>
                <tr>
                    <th>ID</th>
                    <th>作者名称</th>
                    <th>归属板块</th>
                    <th>是否推荐</th>
                    <th>属性</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <tr ng-repeat="i in listArr">
                    <td>{{i.authorId}}</td>
                    <td>{{i.name}}</td>
                    <td>{{i.father}}/{{i.son}}/{{i.grandson}}</td>
                    <td>{{authorLeak(i.leak)}}</td>
                    <td>{{authorType(i.type)}}</td>
                    <td>
                        <button id="article_change" type="button" class="btn btn-primary btn-sm show{{i.status}}" ng-click="authorChange(i.status,i.authorId,this)" ng-bind="authorStatus(i.status)"></button>
                        <button type="button" class="btn btn-primary btn-sm" ng-click="writeUpdate(i.authorId)">修改</button>
                    </td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>
</div>
